#ifndef ENTRYUI_H
#define ENTRYUI_H
#include "solar/trunk/NWidget.h"
#include "intend/IceSailing.h"
#include "tools/Diary.h"
#include "analy/signal/SignalTool.h"
#include "media/signal/SignalMedia.h"
#include "solar/trunk/NSurveyor.h"
#include "solar/trunk/NLabourer.h"

class DoorWin:
    public NMainWindow,
    public DepotMang
{

    Q_OBJECT

public:
    DoorWin(QMainWindow *parent = nullptr);
    Nwidget *DoorWidget = new Nwidget();
    NinsipidView *FC_anlTool = new NinsipidView(DoorWidget);
    NinsipidView *FC_player = new NinsipidView(DoorWidget);
    NinsipidView *config_open = new NinsipidView("打开配置", DoorWidget);
    NinsipidView *config_save = new NinsipidView("保存配置", DoorWidget);
    NinsipidView *config_update = new NinsipidView("更新配置", DoorWidget);
    NinsipidView *config_reset = new NinsipidView("重置配置", DoorWidget);
    QPlainTextEdit *HintPlEdit = new QPlainTextEdit(DoorWidget);

    QHBoxLayout *CfgFuncHLayout = new QHBoxLayout();
    QGridLayout *DoorGrid = new QGridLayout(DoorWidget);
    QSystemTrayIcon *TrayIco = new QSystemTrayIcon(DoorWidget);

    QMap<QWidget*, bool> MapForStat;
    QMap<NT::WIN_QUIT_ATTRIBUTE, uint> Rdomap_QuiCount;

    SignalTool *AnalyTool=nullptr;
    SignalMedia *SimpleMedia=nullptr;

protected:
    Extend definfc;
    Nlwingsing wings;
    MOUSE_ATTRIBUTE MSEVKEY;
    ~DoorWin();
    QTimer GLOBAL_ARGUR_QTIER;

    QMap<QString, QColor> config_fore;
    QMap<QString, QColor> config_back;

private:
    QMenu *SystemTrayMenu = new QMenu(this);
    QString SystemName = "Simple Code";
    QString EditDate = "2023/08";
    QString AmendDate = QDateTime::currentDateTime().toString("yyyy/MM/dd");
    QString ToopHint = "Name: %1\nupd: %2\ncdd: %3";

signals:
    void configAmend();

};
#endif
